.class public Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static final q:Ljava/lang/String;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

.field private c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

.field private d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

.field private e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

.field private f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Lcom/waiqin365/lightapp/visit/gx;

.field private k:Ljava/lang/String;

.field private l:Lcom/waiqin365/lightapp/visit/b/bn;

.field private m:Ljava/util/HashMap;

.field private n:Z

.field private o:Lcom/waiqin365/lightapp/view/bf;

.field private p:Lcom/waiqin365/lightapp/view/er;

.field private r:Ljava/lang/String;

.field private s:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    const v1, 0x7f080072

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->q:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->n:Z

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->r:Ljava/lang/String;

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->s:Ljava/lang/String;

    return-void
.end method

.method static synthetic a()Ljava/lang/String;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->q:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->r:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Ljava/util/HashMap;)Ljava/util/HashMap;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->m:Ljava/util/HashMap;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Lcom/waiqin365/lightapp/visit/b/bn;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a(Lcom/waiqin365/lightapp/visit/b/bn;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/visit/b/bn;)V
    .locals 4

    const v0, 0x7f08021c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v0, "0"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "isModify"

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "1"

    :goto_0
    new-instance v2, Lcom/waiqin365/lightapp/visit/a/a/ax;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->s:Ljava/lang/String;

    invoke-direct {v2, v1, p1, v0, v3}, Lcom/waiqin365/lightapp/visit/a/a/ax;-><init>(Ljava/lang/String;Lcom/waiqin365/lightapp/visit/b/bn;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->j:Lcom/waiqin365/lightapp/visit/gx;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void

    :cond_0
    const-string/jumbo v0, "0"

    goto :goto_0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/a/bb;

    invoke-direct {v1, v0, p1, p2}, Lcom/waiqin365/lightapp/visit/a/a/bb;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->j:Lcom/waiqin365/lightapp/visit/gx;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->n:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->k:Ljava/lang/String;

    return-object p1
.end method

.method private b()V
    .locals 8

    const v7, 0x7f080742

    const v6, 0x7f0804e1

    const/16 v5, 0x8

    const/4 v4, 0x0

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->g:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->h:Landroid/widget/TextView;

    const v0, 0x7f0c0c52

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->i:Landroid/widget/TextView;

    const v1, 0x7f08078d

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c69

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const-string/jumbo v1, "1"

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setMustinput(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const v1, 0x7f0804ef

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setLabel(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0ae1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    const-string/jumbo v1, "1"

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setMustinput(Ljava/lang/String;)V

    const-string/jumbo v0, "0"

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a:Landroid/content/Context;

    const-string/jumbo v2, "visit_is_can_view_all"

    const-string/jumbo v3, "0"

    invoke-static {v1, v2, v3}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/q;->a:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setAclType(Lcom/waiqin365/base/db/offlinedata/q;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    const v1, 0x7f08085a

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    const v1, 0x7f080744

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setHint(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setBottomLineStatus(Z)V

    const v0, 0x7f0c0ae3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    const-string/jumbo v1, "1"

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setMustinput(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {p0, v6}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {p0, v7}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setHint(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gs;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gs;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setOnSizeChange(Lcom/waiqin365/lightapp/view/bt;)V

    const v0, 0x7f0c0c6a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    const-string/jumbo v1, "1"

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setMustinput(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {p0, v6}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {p0, v7}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setHint(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0215

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    const v1, 0x7f080650

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    const v1, 0x7f08032f

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->setHint(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->setBottomLineStatus(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gt;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gt;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setOnEmployeeSelectListener(Lcom/waiqin365/lightapp/view/eq;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isModify"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "info"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->h:Landroid/widget/TextView;

    const v2, 0x7f08054f

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setEdit(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setEdit(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setEdit(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-static {}, Lcom/waiqin365/lightapp/photo/d/a;->a()Lcom/waiqin365/lightapp/photo/d/a;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bn;->c:Ljava/lang/String;

    const-string/jumbo v4, "yyyy-MM-dd"

    invoke-virtual {v2, v3, v4}, Lcom/waiqin365/lightapp/photo/d/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setDate(Ljava/lang/Object;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bn;->n:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/offlinedata/m;->i(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setEmpInfo(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/b/bn;->f:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->setValue(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/b/bn;->h:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v1

    if-eqz v1, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setCmCustomerInfo(Lcom/waiqin365/lightapp/kehu/b/am;)V

    :cond_0
    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gu;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gu;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setOnDateChangedListener(Lcom/waiqin365/lightapp/view/be;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->f()Ljava/util/HashMap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->m:Ljava/util/HashMap;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->e()Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setAclType(Lcom/waiqin365/base/db/offlinedata/q;)V

    goto/16 :goto_0

    :cond_2
    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/b/bn;->z:Lcom/waiqin365/lightapp/kehu/b/am;

    if-eqz v1, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setCmCustomerInfo(Lcom/waiqin365/lightapp/kehu/b/am;)V

    goto :goto_1

    :cond_3
    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-object v2, v0, Lcom/waiqin365/lightapp/visit/b/bn;->i:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bn;->h:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setCmCustomerInfo(Lcom/waiqin365/lightapp/kehu/b/am;)V

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->h:Landroid/widget/TextView;

    const v1, 0x7f08001a

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/offlinedata/m;->i(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setEmpInfo(Lcom/waiqin365/lightapp/kehu/share/a/c;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "date"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string/jumbo v2, "yyyy-MM-dd"

    sget-object v3, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v1, v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    :try_start_0
    invoke-virtual {v1, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    new-instance v3, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-direct {v3, v4, v5}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v3}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-static {}, Lcom/waiqin365/lightapp/photo/d/a;->a()Lcom/waiqin365/lightapp/photo/d/a;

    move-result-object v2

    const-string/jumbo v3, "yyyy-MM-dd"

    invoke-virtual {v2, v0, v3}, Lcom/waiqin365/lightapp/photo/d/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setDate(Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    goto/16 :goto_1
.end method

.method private c()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isModify"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->r:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->o:Lcom/waiqin365/lightapp/view/bf;

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setOnPickDateClickDialog(Ljava/lang/String;Lcom/waiqin365/lightapp/view/bf;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->r:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->p:Lcom/waiqin365/lightapp/view/er;

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->setOnSelectClickDialog(Ljava/lang/String;Lcom/waiqin365/lightapp/view/er;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->n:Z

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/CustomerSelectMultView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    return-object v0
.end method

.method private d()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/gv;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/gv;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->p:Lcom/waiqin365/lightapp/view/er;

    new-instance v0, Lcom/waiqin365/lightapp/visit/gw;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/gw;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->o:Lcom/waiqin365/lightapp/view/bf;

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    return-object v0
.end method

.method private e()V
    .locals 5

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->f()Ljava/util/HashMap;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->c()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-static {p0, v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "isModify"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_4

    new-instance v2, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v3, "info"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-direct {v2, v0}, Lcom/waiqin365/lightapp/visit/b/bn;-><init>(Lcom/waiqin365/lightapp/visit/b/bn;)V

    iput-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bn;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    move v0, v1

    :goto_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const-string/jumbo v4, "yyyy-MM-dd"

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/visit/b/bn;->c:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "isModify"

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    if-nez v2, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->e()Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v3

    iget-object v3, v3, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/visit/b/bn;->n:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->o()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/visit/b/bn;->h:Ljava/lang/String;

    :cond_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f:Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->d()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-interface {v3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/visit/b/bn;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "isModify"

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_2

    if-nez v0, :cond_8

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a(Lcom/waiqin365/lightapp/visit/b/bn;)V

    goto/16 :goto_0

    :cond_3
    const/4 v0, 0x1

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->e()Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->c()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-static {p0, v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->e()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_6

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f08065d

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d:Lcom/waiqin365/lightapp/view/CustomerSelectMultView;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/CustomerSelectMultView;->c()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    if-nez v0, :cond_7

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/b/bn;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    :cond_7
    move v0, v1

    goto/16 :goto_1

    :cond_8
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->f()V

    goto/16 :goto_0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    return-object v0
.end method

.method private f()V
    .locals 5

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "conditions.date"

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    const-string/jumbo v4, "yyyy-MM-dd"

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v2, "conditions.userId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->c:Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->e()Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v3

    iget-object v3, v3, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Lcom/waiqin365/lightapp/visit/a/a/ay;

    invoke-direct {v2, v0, v1}, Lcom/waiqin365/lightapp/visit/a/a/ay;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->j:Lcom/waiqin365/lightapp/visit/gx;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Ljava/util/HashMap;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->m:Ljava/util/HashMap;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->k:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e:Lcom/waiqin365/lightapp/view/CustomerSelectView_Vertical;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)Lcom/waiqin365/lightapp/visit/b/bn;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->l:Lcom/waiqin365/lightapp/visit/b/bn;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->back()V

    goto :goto_0

    :pswitch_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->e()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0c4f
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->d()V

    new-instance v0, Lcom/waiqin365/lightapp/visit/gx;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/gx;-><init>(Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->j:Lcom/waiqin365/lightapp/visit/gx;

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->a:Landroid/content/Context;

    const v0, 0x7f03028a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;->b()V

    return-void
.end method
